<template>
  <el-form label-width="100px">
    <CommonProps :placeholder="false" :compWidth="false" />
    <el-form-item label="文件类型">
      <el-select v-model="fs.getProps().fileType" multiple clearable placeholder="选择文件类型">
        <el-option label="无限制" value="" />
        <el-option label="TXT文件" value=".txt" />
        <el-option label="PDF文件" value=".pdf" />
        <el-option label="WORD文件" value=".doc,.docx" />
        <el-option label="EXCEL文件" value=".xls,.xlsx" />
        <el-option label="音频文件" value="audio/*" />
        <el-option label="视频文件" value="video/*" />
        <el-option label="图片文件" value="image/*" />
        <!-- .jpg,.jpeg,.png,.gif,.bmp,.JPG,.JPEG,.PBG,.GIF,.BMP -->
      </el-select>
    </el-form-item>
    <el-form-item label="文件数量">
      <el-input v-model="fs.getProps().limit" placeholder="限制上传文件数量"></el-input>
    </el-form-item>
    <el-form-item label="文件大小">
      <el-input v-model="fs.getProps().fileSize" placeholder="限制上传文件大小">
        <template #append>MB</template>
      </el-input>
    </el-form-item>
    <el-form-item label="列表类型">
      <el-select v-model="fs.getProps().listType">
        <el-option label="文件" value="text" />
        <el-option label="图片" value="picture" />
        <el-option label="图片卡片" value="picture-card" />
      </el-select>
    </el-form-item>
    <el-form-item label="按钮文字">
      <el-input v-model="fs.getProps().text" placeholder="请输入上传按钮文字"></el-input>
    </el-form-item>
    <el-form-item label="允许多选">
      <el-switch v-model="fs.getProps().multiple"></el-switch>
    </el-form-item>
    <el-form-item label="显示提示">
      <el-switch v-model="fs.getProps().tip"></el-switch>
    </el-form-item>
    <CommonPropsTwo :readonly="false" />
  </el-form>
</template>

<script setup lang="ts">
import CommonProps from '../../common-props/Props.vue'
import CommonPropsTwo from '../../common-props/PropsTwo.vue'
import { ElForm, ElFormItem, ElSelect, ElOption, ElInput, ElSwitch } from 'element-plus'
import { useFlowStore } from '@/stores/flow'

const fs = useFlowStore()
</script>

<style lang="scss" scoped></style>
